import 'package:dk_flutter_base/dk_core.dart';
import 'package:dk_flutter_base/dk_ui.dart';

Widget getToastTipWidget(String title) {
  return Container(
    height: 76,
    width: 175,
    padding: EdgeInsets.only(left: 15, right: 15, top: 15, bottom: 15),
    decoration: BoxDecoration(
      color: Color.fromRGBO(2, 2, 2, 0.7),
      borderRadius: BorderRadius.circular(3),
    ),
    child: Center(
      child: Text(
        title,
        textAlign: TextAlign.center,
        maxLines: 2,
        overflow: TextOverflow.ellipsis,
        style: TextStyle(
            color: Colors.white, fontSize: 16, fontWeight: FontWeight.normal),
      ),
    ),
  );
}

class DKToastWidget {
  static void  ShowToast(String msg){
    showWidgetToast(getToastTipWidget(msg));
  }
}